package com.unbox.admin.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * <枚举管理实体类
 * </p>
 *
 * @author 王振宇
 * @since 2021-03-02
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("unbox_enumeration")
@ApiModel(value = "Enumeration", description = "枚举管理")
public class Enumeration implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableField(value = "name")
    @ApiModelProperty(value = "name", name = "name")
    private String name;
   /**
    * 枚举Key
    */
    @TableField(value = "`keys`")
    @ApiModelProperty(value = "keys", name = "keys")
    private String keys;

   /**
    * 枚举值
    */
    @TableField(value = "`values`")
    @ApiModelProperty(value = "values", name = "values")
    private String values;

    /**
     * 备注
     */
    @TableField(value = "`remarks`")
    @ApiModelProperty(value = "remarks", name = "remarks")
    private String remarks;

   /**
    * 创建时间
    */
    @TableField(value = "create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "create_time", name = "createTime")
    private LocalDateTime createTime;

   /**
    * 标识列
    */
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "id", name = "id")
    private Integer id;

}
